package com.hgsoft.dao;

import java.util.Date;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.hgsoft.entity.TransferPf;
import com.hgsoft.util.DateUtil;

@Repository
public class TransferPfDao extends BaseDao<TransferPf> {

	public void delete(Date date) {
		StringBuffer sb = new StringBuffer();
		sb.append("DELETE FROM TransferPf WHERE date='").append(DateUtil.getDateStr(date)).append("'");
		Query q = this.getSession().createQuery(sb.toString());
		q.executeUpdate();
	}
}
